package form

type PassWordLoginForm struct {
	Mobile    string `form:"mobile" json:"mobile" binding:"required,mobile"` //手机号码格式规范 自定义validate
	PassWord  string `form:"password" json:"password" binding:"required,min=3,max=20"`
	Captcha   string `form:"captcha" json:"captcha" binding:"required,min=3,max=5"`
	CaptchaId string `form:"captcha_id" json:"captcha_id" binding:"required"`
}
type PassWordLoginFormWithBlog struct {
	Mobile   string `form:"mobile" json:"mobile" binding:"required,mobile"` //手机号码格式规范 自定义validate
	PassWord string `form:"password" json:"password" binding:"required,min=3,max=20"`
}
type RegisterForm struct {
	Mobile   string `form:"mobile" json:"mobile" binding:"required,mobile"`
	PassWord string `form:"password" json:"password" binding:"required,min=3,max=20"`
	Code     string `form:"code" json:"code" binding:"required,min=3,max=6"`
}

type AddUserForm struct {
	Mobile   string `form:"mobile" json:"mobile" binding:"required,mobile"`
	PassWord string `form:"password" json:"password" binding:"required,min=3,max=20"`
}
type UpdatePasswordForm struct {
	OldPassword string `form:"oldPwd" json:"oldPassword" binding:"required"`
	NewPassword string `form:"newPass" json:"newPassword" binding:"required"`
}
